package top.heliming.leyou.userconsumer.service.impl;

import org.springframework.stereotype.Component;
import top.heliming.leyou.userconsumer.bean.User;
import top.heliming.leyou.userconsumer.service.UserFeignClient;

/**
 * description: //feign回调
 *
 * @author: heliming
 * @date:2019/05/25 下午 12:03
 */
@Component
public class UserFeignClientFallback implements UserFeignClient {

  @Override
  public User queryUserById(Long id) {
    User user = new User();
    user.setId(id);
    user.setName("用户查询出现异常！");
    return user;
  }
}

